package com.bingxue.edu.management.shop.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

/**
 * 订单创建请求
 *
 * @author panbo
 * @since 2024/08/27 14:31
 */
@Data
@Schema(description = "订单创建请求")
public class OrderUpdateReq {

    @Schema(description = "学生id")
    @NotBlank(message = "学生id不能为空")
    @Length(max = 32, message = "学生id长度不能超过 {max} 个字符")
    private String studentId;

    @Schema(description = "原始总价")
    @NotNull(message = "原始总价不能为空")
    private BigDecimal originalTotalPrice;

    @Schema(description = "实际总价")
    @NotNull(message = "实际总价不能为空")
    private BigDecimal actualTotalPrice;

    @Schema(description = "是否支付")
    private Boolean payOff;

    @Schema(description = "支付方式")
    @Length(max = 32, message = "支付方式长度不能超过 {max} 个字符")
    private String payType;

    @Schema(description = "财务账户")
    @Length(max = 32, message = "财务账户长度不能超过 {max} 个字符")
    private String finAccountId;

    @Schema(description = "备注（内部）")
    @Length(max = 255, message = "备注（内部）长度不能超过 {max} 个字符")
    private String remark;

    @Schema(description = "备注（外部）")
    @Length(max = 255, message = "备注（外部）长度不能超过 {max} 个字符")
    private String remarkOut;
}
